using System;
using System.Collections.Generic;
using System.Linq;
namespace WebClient.Models.Repositories
{
	#region using
	using WebClient.Helpers;
	using WebClient.Models.ViewModels;
	using WebClient.Models;
    using WebClient.CF_DAL_WS;
	#endregion
	public class RoleRepository
	{
		public static List<RoleDTO> SelectAll()
		{
			try
			{
                return DALService.Instance.Role_SelectAll().ToList();
			}
			catch(Exception ex)
			{
				if(ex.InnerException != null)
					GlobalVariables.Logger.Error("City - SelectAll: " + ex.InnerException.Message.Replace("\t", string.Empty).Replace("\r", string.Empty).Replace("\n", string.Empty));
				else
					GlobalVariables.Logger.Error("City - SelectAll: " + ex.Message.Replace("\t", string.Empty).Replace("\r", string.Empty).Replace("\n", string.Empty));
			}
            return new List<RoleDTO>();
		}
	}
}